package com.wbq.datastructuredemo.engine;

import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

public class SaveTextFileTask {
	
	public static void SaveTextFile(String s, String filePath) throws Exception{
		FileOutputStream fos = new FileOutputStream(filePath,false);
		OutputStreamWriter osw = new OutputStreamWriter(fos, "utf-8");
		osw.write(s);
		osw.flush();
		osw.close();
		osw.close();
		fos.close();
	}
}
